import { Module, forwardRef } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { CronController } from './cron.controller';
import { CronService } from './cron.service';
import { Cron } from './cron.entity';
import { TaskModule } from '../task/task.module';
import { LogModule } from '../log/log.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Cron]),
    forwardRef(() => TaskModule),
    LogModule
  ],
  controllers: [CronController],
  providers: [CronService],
  exports: [CronService],
})
export class CronModule { } 